<%@ page language="java" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>修改手机</title>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/adduser.css"/>
	</head>
	<body>
		<div class="bg">
			<div class="logo lfet"></div>
			<div class="font lfet">
				修改手机>>>
			</div>
			<%--//ID--%>
			<%--private Integer brandId;--%>
			<%--//品牌名字--%>
			<%--private String brandName;--%>
			<%--//品牌的多个手机--%>
			<%--private List<Phone> phone;--%>


			<%--//ID--%>
			<%--private Integer phoneId;--%>
			<%--//手机名--%>
			<%--private String phoneName;--%>
			<%--//手机价钱--%>
			<%--private Double phonePrice;--%>
			<%--//上架  下架--%>
			<%--private Integer phoneState;--%>
			<%--//品牌--%>
			<%--private Brand brand;--%>
			<div class="wizard right">
				<form action="${pageContext.request.contextPath}/phone/p_updatePhone">
		            <div class="content">
		            	<div class="col">
		                    <div class="form-group">
								<input type="hidden" name="phone.phoneId" value="${requestScope.phone.phoneId}">
		                  		<label class="lfet">手机名称:</label>
		                    	<input name="phone.phoneName" type="text" class="form-control error inp-bg1 left" value="${requestScope.phone.phoneName}" style="outline:none;">
		                 	</div>
		            	    <div class="form-group">
			                    <label style="text-align: left;">是否有货:</label>
			                    <input type="radio" name="phone.phoneState" style="outline:none;" value="1" checked="checked"><span>有货</span>
			               		<input type="radio" name="phone.phoneState" style="outline:none;" value="2"><span>无货</span>
		                	</div>
		                	<div class="form-group">
		                    	<label class="lfet">价格:</label>
		                    	<input type="text" name="phone.phonePrice" value="${requestScope.phone.phonePrice}" class="form-control error dh" style="outline:none;">
		                	</div>
			                <div class="form-group">
		                    	<label class="lfet">品牌:</label>
		                    	<select name="phone.phoneBrandId"  class="form-control error map" style="outline:none;height: 30px;width: 300px;" >
									<option value="1" >华为</option>
									<option value="2" >小米</option>
									<option value="3" >苹果</option>
		                    	</select>
		                	</div>
			                <div class="bottom" style="text-align: center;">
								<!-- 这个button也可以提交表单，不需要改成submit -->
			                	<button style="text-align: center;">提 交</button>
			                </div>
			            </div>
		            </div>
				</form>
	        </div>
	    </div>
	</body>
</html>
